package com.bravo.recruit.repository;

import com.bravo.recruit.entity.Enterprise;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * enterprise数据访问接口
 * @author Yuyong
 *
 */
public interface EnterpriseRepository extends JpaRepository<Enterprise,String>,JpaSpecificationExecutor<Enterprise>{

    /**
     * 根据热门状态获取企业列表
     * @param isHot
     * @return
     */
    List<Enterprise> findByIsHot(String isHot);
}
